scale: Replace format-value signal
authorTimm Bäder <mail@baedert.org>
Fri, 9 Aug 2019 11:32:24 +0000 (13:32 +0200)
committerTimm Bäder <mail@baedert.org>
Fri, 9 Aug 2019 12:30:01 +0000 (14:30 +0200)
commitea5fc348fa6143bcd9a1979db2734617de01c96c
treebea6e4a07288d7e0e6f85050eb3a33c786946d00
parentebc0d3760fdeb649b6c821e5b533d823c0606cf8
scale: Replace format-value signal

There is no reason for this to be a signal, since multiple handlers
don't make sense anyway. It was also broken because the scale needs to
know when a signal handler is added so it can update the value
representation.

Replace the signal with a set_format_value_func function which allows us
to do that.

Fixes #113
demos/widget-factory/widget-factory.c
demos/widget-factory/widget-factory.ui
gtk/gtkscale.c
gtk/gtkscale.h